package com.gitee.neuray.security.common.constant;


/**
 *
 * @author 东睿小组
 * @date 2017/8/29
 */
public class CommonConstants {
    // 用户token异常
    public static final Integer EX_USER_INVALID_CODE = 40101;
    // 客户端token异常
    public static final Integer EX_CLIENT_INVALID_CODE = 40301;
    public static final Integer EX_CLIENT_FORBIDDEN_CODE = 40331;
    public static final Integer EX_OTHER_CODE = 500;
    public static final Integer HTTP_SUCCESS = 200;
    public static final String CONTEXT_KEY_USER_ID = "currentUserId";
    public static final String CONTEXT_KEY_USERNAME = "currentUserName";
    public static final String CONTEXT_KEY_USER_NAME = "currentUser";
    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";
    //密级判断
    public static final Integer EX_LEVELS = 40000;

    public static final String WEB_USERHOST = "userHost";
    public static final String WEB_USERNAME = "name";
    public static final String WEB_USERID = "userId";
    /**
     * 院网关身份姓名
     */
    public static final String PERSON_ID_ARG = "dnname";
    public static final String CLIENT_IP_ARG = "clientIp";
    /**
     * 院网关解码
     */
    public static final String PERSON_CHAR_SET = "ISO8859-1";
    /**
     * 获取请求体中的参数名，按顺序获取如果没有第一个，则第二个，以此类推
     */
    public static final String GET_GATE_LOG_REQUEST_BODY_RULE = "name,title";

    public static final String GATE_REQUEST_URI = "requestUri";

    public static final String GET_GATE_LOG_REQUEST_LIST = "all";

    public static final String GET_GATE_LOG_REQUEST_PAGE = "page";

    public static final String GET_GATE_LOG_REQUEST_EXPORT = "export";
    public static final String GET_GATE_LOG_REQUEST_FEIGN = "/front/info";
    /**
     * 没有权限编码
     */
    public static final int URL_NOT_PERMISSION = 40304;
    public static final int URL_METHOD_NOT_PERMISSION = 40305;

}
